package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "GroupUserOpt".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class GroupUserOptHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOptHelper.id(),"GroupUserOpt",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("GroupTelno", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("UserTelno", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("PttPriority", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("GroupPriority", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/GroupUserOpt:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt();
		result.GroupTelno=in.read_string();
		result.UserTelno=in.read_string();
		result.PttPriority=in.read_long();
		result.GroupPriority=in.read_long();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GroupUserOpt s)
	{
		out.write_string(s.GroupTelno);
		out.write_string(s.UserTelno);
		out.write_long(s.PttPriority);
		out.write_long(s.GroupPriority);
	}
}
